package sivan.listener;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
import sivan.domain.User;

/**
 * Created by sivan on 2019/2/27.
 */
@Component
public class TestListener implements ApplicationListener<TestEvent> {

    @Override
    public void onApplicationEvent(TestEvent event) {
        User user = event.getUser();
        System.out.println(user.getEmail()+"===============");
    }
}
